using System;
using System.Collections.Generic;
using System;
using System.Runtime.InteropServices;
using System.IO;

namespace rudp
{	
	public class MessagePacketManager
	{

		public MessagePacket VerifyReceipt ( List<MessagePacket> packets, int count )
		{
			List<int> missingMessagePackets = new List<int>();

			MessageReceipt messageReceipt = new MessageReceipt();
			messageReceipt.Count = (byte)missingMessagePackets.Count;
	
			byte[] data = messageReceipt.ToByteArray();

			MessagePacket receipt = new MessagePacket();
			receipt.Data = data;
			receipt.DataLength = (ushort)data.Length;
			receipt.Flags = MessageFlags.ReceiptResponse;
			receipt.Id = packets[0].Id;
									  
			return receipt;
		}
	}
}

